<?php
    echo "<div class='company_profile'>";
            if( $data['Employer']['logo']!='' )
            {
                echo $html->image('../'.$data['Employer']['logo'], array('alt' => 'Your Logo is Missing','class'=>'logo'));
            }        
            echo "<br>";
            echo "<font style='font-size:150%;color:#043198'><b>".$data['Employer']['company_name']."</b></font>";
            echo "<br>";
            if($data['Employer']['website']!='')
            { echo "<a href='".$data['Employer']['website']."'><font style='color:#888'><u>".$data['Employer']['website']."</u></font></a><br>"; }
            echo "<br>";
            echo "<p align='justify'><font color='grey'>".$data['Employer']['desc']."</font></p>";
        
        echo "<br>";
        echo "<table cellpadding=0 cellspacing=0>";
            echo "<tr><td valign='top' width='550px'>";
            echo "<div class='company_detail'>";
                echo "<div class='detail_name'>Company Facts</div>";  
                echo "<span class='field'>Company name :</span><br>";  
                echo "<span class='isi'>".$data['Employer']['company_name']."</span>";        
                echo "<br><span class='field'>Industry :</span><br>";  
                if($data['Employer']['industry']!='')
                { echo "<span class='isi'>".$data['Employer']['industry']."</span>"; }
                else       
                { echo "<span class='isi'> - </span>"; }       
                echo "<br><span class='field'>Location :</span><br>";  
                echo "<span class='isi'>".$data['Employer']['location']."</span>";
                if($data['Employer']['fax']!='')
                {  
                    echo "<br><span class='field'>Company Fax :</span><br>";  
                    echo "<span class='isi'>".$data['Employer']['fax']."</span>";  
                }
                if($data['Employer']['website']!='')
                {
                    echo "<br><span class='field'>Website :</span><br>";  
                    echo "<span><a href='".$data['Employer']['website']."' class='sky'>".$data['Employer']['website']."</a></span>"; 
                }
                echo "<br><span class='field'>Email :</span><br>";  
                echo "<span class='isi'>".$data['Employer']['email']."</span>";  
           
            echo "</div>";
            echo "<br>"; 
            echo "<div class='company_detail'>";
                echo "<div class='detail_name'>Jobs Posted by Company</div>";
                $i=1;
                foreach($jobs as $job)
                {
                    echo "<span>".$i.". ".$html->link($job['Job']['position'],array('controller'=>'jobs','action'=>'view',$job['Job']['id']),array('class'=>'sky') )."</span>";
                    echo "<br>";
                    $i++;
                }    
                
                if(count(@$jobs)==0)
                {
                    echo "<center> This company hasn't posted any job yet.</center>";
                }
            echo "</div>";
                 
            echo "<td width='10px'>&nbsp</td>";     
                       
            echo "</td><td valign='top' width='620px'>";
            echo "<div class='company_detail'>";
                echo "<div class='detail_name'>Other Information</div>"; 
                if($data['Employer']['other']!='')
                { echo "<p align='justify' style='padding:3px'>".$data['Employer']['other']."</p>"; }
                else
                { echo "<center> Currently no additional information has been provided by the company.</center>"; }
            echo "</div>";
            echo "</td></tr>";
        echo "</table>";
    
    echo "</div>";
?>